#include <stdio.h>
#include "lib_open.h"

int lib_open(int argc, char* argv[]){
	FILE *fp;
	int c; //for EOF of stdio

	if(argc < 2) exit(1);
	fp = fopen(argv[1], "r");
	if(fp == 0) exit(2);

	while((c = fgetc(fp) != EOF)){
			putchar(c);
	}
}
